<div class="adPosts form">
<?php echo $form->create('AdPost');?>
	<fieldset>
 		<legend><?php __('Edit AdPost');?></legend>
	<?php
		echo $form->input('id');
		echo $form->input('ad_category_id', array('label'=>__('id',true)));
		echo $form->input('type', array(
            'options' => array('O'=>__('Offer',true), 'W'=>__('Wanted',true)),
            'label'   => __('Listing Type',true))
        );
		echo $form->input('title');
		echo $form->input('description');
		echo $form->input('condition', array('options' => array('N'=>__('New',true), 'U'=>__('Used',true))));
		echo $form->input('currency');
		echo $form->input('price');
		echo $form->input('user_id', array('label'=>__('User Email',true)));
		echo $form->input('visit');
		echo $form->input('active');
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action'=>'delete', $form->value('AdPost.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('AdPost.id'))); ?></li>
		<li><?php echo $html->link(__('List AdPosts', true), array('action'=>'index'));?></li>
		<li><?php echo $html->link(__('List Ad Categories', true), array('controller'=> 'ad_categories', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Ad Category', true), array('controller'=> 'ad_categories', 'action'=>'add')); ?> </li>
	</ul>
</div>
